package com.jdk.learn.juc2.lock.locksupport;

import java.util.concurrent.locks.LockSupport;

/**
 * 类功能描述:
 *
 * @author bgt
 * @version V1.0
 * @since 2019-02-15 15:58
 */
public class LockSupportDemo {
    public static void main(String[] args) {
//        main01(null);
        main02(null);
    }
    public static void main02(String[] args) {
        System.out.println("begin park");
        LockSupport.unpark(Thread.currentThread());
        LockSupport.park();
        System.out.println("end Unpark");
    }
    public static void main01(String[] args) {
        System.out.println("begin park");
        LockSupport.park();
        System.out.println("end Unpark");
    }
}
